﻿<%@ Page Language="VB" MasterPageFile="~/NavegacaoMaster.master" AutoEventWireup="false" CodeFile="forum_inicialPesquisaSimples.aspx.vb" Inherits="forum_forum_inicialPesquisaSimples" title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width:100%;">
        <tr>
            <td class="style3" style="width: 15px">
                &nbsp;</td>
            <td>
                <p class="titulo-pagina">
                    Resultado da Pesquisa no Fórum</p>
            </td>
        </tr>
        <tr>
            <td class="style3" style="width: 15px">
                &nbsp;</td>
            <td>
                <table>
                    <tr>
                        <td style="width: 332px">
                            &nbsp;</td>
                        <td style="width: 231px">
                            <asp:TextBox ID="txtBusca" runat="server" Width="100px"></asp:TextBox>
                            <asp:Button ID="btnPesquisar" runat="server" onclick="btnPesquisar_Click" 
                    SkinID="btnPadrao" Text="Buscar" Width="61px" />
                            <asp:LinkButton ID="LinkButton1" runat="server" SkinID="lnkGridView" 
                    onclick="LinkButton1_Click">Avançada</asp:LinkButton>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="style3" style="width: 15px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style3" style="width: 15px">
                &nbsp;</td>
            <td>
                <asp:GridView ID="GridView1" SkinID="grvBusca" runat="server" 
                    AutoGenerateColumns="False">
                    <Columns>
                        <asp:TemplateField HeaderText="Categoria">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                               <asp:Label ID="Label3" runat="server" Text='<%# Bind("NomeCategoria") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Subcategoria">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                 <asp:LinkButton ID="LinkButton2" runat="server" SkinID="lnkCategorias" PostBackUrl='<%# "~/forum/subcategoria.aspx?id=" & Eval("IdSubcategoria") %>' Text='<%# Eval("NomeSubCategoria") %>'></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle Width="120px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Tópico">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Titulo") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton2" runat="server" SkinID="lnkCategorias" PostBackUrl='<%# "~/forum/topico.aspx?id=" & Eval("IdTopico") %>'
                                    Text='<%# Eval("Titulo") %>' ></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle Width="120px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Mensagens">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("TrechoMensagem") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                               <asp:LinkButton ID="LinkButton2" runat="server" SkinID="lnkTrechoMsg" PostBackUrl='<%# "~/forum/topico.aspx?id=" & Eval("IdTopico") %>'
                                    Text='<%# Eval("TrechoMensagem") %>'></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle Width="250px" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <asp:Label ID="lblErro" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style3" style="width: 15px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>

